package com.weipai.springboot.module.service;

import com.weipai.springboot.model.Picture;
import com.weipai.springboot.model.PictureCategory;
import com.weipai.springboot.model.api.Response;

/**
 * @Author: 曹朋飞
 * @Date: 2018/08/27 17:27
 */
public interface PictureService {

    //通过图片的分类获取图片
    Response getImgByPictureCategoryId(String id);

    //图片的保存
    Response savePicture(Picture picture);

    //通过图片id获取图片详情
    Response getPictureById(Integer id);

    //图片的删除
    Response batchDeleteById(Integer[] id);

    //图片的修改
    Response updatePicture(Picture picture);

    //图片分类的保存
    Response savePictureCategory(PictureCategory pictureCategory);

    //图片分类的修改
    Response updatePictureCategory(Integer id, String categoryName);

    //获取图片分类的详情
    Response getPictureCategoryInfo(Integer id);

    //图片分类的删除
    Response batchDeleteByCategoryId(Integer[] id);

    //图片分类列表
    Response pictureCategoryList();
}
